import request from '@/utils/request'

// 查询数据集主列表
export function listSet(query) {
  return request({
    url: '/dataManage/dataSet/list',
    method: 'post',
    data: query
  })
}

// 查询数据集主详细
export function getSet(id) {
  return request({
    url: '/dataManage/dataSet/' + id,
    method: 'get'
  })
}


// 查询数据集主详细
export function testSet(id) {
  return request({
    url: '/dataManage/dataSet/test/' + id,
    method: 'get'
  })
}



export function testAllSet(id) {
  return request({
    url: '/dataManage/dataSet/testAll/' + id,
    method: 'get'
  })
}

// 新增数据集主
export function addSet(data) {
  return request({
    url: '/dataManage/dataSet/save',
    method: 'post',
    data: data
  })
}

// 修改数据集主
export function updateSet(data) {
  return request({
    url: '/dataManage/dataSet/save',
    method: 'post',
    data: data
  })
}

// 删除数据集主
export function delSet(id) {
  return request({
    url: '/dataManage/dataSet/delete/' + id,
    method: 'get'
  })
}

// 导出数据集主
export function exportSet(query) {
  return request({
    url: '/dataManage/dataSet/export',
    method: 'get',
    params: query
  })
}


export function getGHTPdf(url) {
  return request({
    url: '/getGHTPdf/downPdf?pdfNetUrl='+url ,
    method: 'get'
  })
}




// 查询数据集主详细
export function getInfo(id) {
  return request({
    url: '/dataManage/dataSet/getInfo/' + id,
    method: 'get'
  })
}
